$(function(){
    
    $("#search-button").click(function(){
        window.location.href = 'searchAdmin?username='+$("#search-field").val();
    });
    $("#return-chat").button();
    $('#return-home').button();
    function pull_left(me, p){
        $(me).width(40);
        $( me ).position({
            my: "center center",
            at: "center+90 center ",
            collision:"flip",
            of: p
        }); 
    } 
    pull_left("#search-button", "#search-field");
});